#{extends 'mana-main.html' /}
#{set activitydActive :"active" /}
#{set title :"添加活动" /}
<br>
<br>
<br>
<br>
<br>

<form class="bs-docs-example form-horizontal" method="post" action="@{Activities.addActivity}">
    <fieldset>
        <legend>编辑活动</legend>
        <div class="control-group">
            <label class="control-label" for="T-name">标题</label>
            <div class="controls">
                <input type="text" id="T-name" placeholder="输入标题" name="name" required="requied"/>
            </div>
        </div>
        *{<div class="control-group">
            <label class="control-label" for="T-article">链接</label>
            <div class="controls">
                <input type="text" id="T-article" placeholder="输入链接" name="keyId" required="requied"/>
            </div>
        </div>}*
        <div class="control-group">
            <label class="control-label" for="T-photo">图片ID</label>
            <div class="controls">
                <input type="text" id="T-photo" placeholder="输入ID" name="photoId" required="requied"/>
            </div>
        </div>
        <div class="controls">
            <script id="articleContent" name="content" type="text/plain"></script>
        </div>
        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </div>
    </fieldset>

</form>
<script type="text/javascript" src="@{'/public/ueditor/ueditor.config.js'}"></script>
<script type="text/javascript" src="@{'/public/ueditor/ueditor.all.js'}"></script>
<script type="text/javascript">
    var editor = new UE.ui.Editor({initialFrameHeight:100
        ,toolbars:[]});
    editor.render("articleDescription");
    var ue = UE.getEditor('articleContent');

</script>